package com.qiusuo0226.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qiusuo0226.platform.pojo.po.RequestRecordPO;
import com.qiusuo0226.platform.pojo.query.RequestRecordQuery;
import com.qiusuo0226.platform.pojo.vo.RequestRecordVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 接口访问记录持久层
 * @author qiusuo
 * @date 2023/4/4 15:04
 */
@Repository
public interface RequestRecordMapper extends BaseMapper<RequestRecordPO> {

    /**
     * 根据条件分页查询 接口访问记录列表
     * @param page 分页参数对象
     * @param query 查询条件
     * @return
     */
    IPage<RequestRecordVO> selectRecord(Page page, @Param("query") RequestRecordQuery query);
}
